<?php

define('G_BIN_CHECK_INCLUDE', 1);
include "./common.inc.php";

if(!empty($_GET['img_item_id']) && !empty($_GET['hash']) && !empty($_GET['sn']))
{
	if(is_numeric($_GET['img_item_id']) && strlen($_GET['hash']) == 32)
	{
		$hash = addslashes($_GET['hash']);
		$_GET['sn'] = intval($_GET['sn']);
		$sql = "UPDATE a2417006_app.img_pic_collection_tmp_tbl SET img_item_id = {$_GET['img_item_id']} WHERE tags_hash = '{$hash}' AND sn={$_GET['sn']}";
		db_query_sql($sql, 2, false);
		echo 'ok';
	}
}


